/**
 * 验证是否登录的中间件
 */

 // 从context上下文对象中解构出store和redirect
export default function ({ store, redirect }) {
    // If the user is not authenticated
    if (store.state.user) {
      return redirect('/')
    }
  }